package com.smedi.ismedi.dangeroussourcemanage.core.port.adapter.service.Impl;

import com.smedi.ismedi.constructionproject.api.dto.response.ProjectBasicResponse;
import com.smedi.ismedi.constructionproject.api.feign.RemoteConstructionProjectFeignApi;
import com.smedi.ismedi.dangeroussourcemanage.core.port.adapter.service.ConstructionProjectRemoteApiService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class ConstructionProjectRemoteApiServiceImpl implements ConstructionProjectRemoteApiService {

    private final RemoteConstructionProjectFeignApi remoteConstructionProjectFeignApi;

    @Override
    public ProjectBasicResponse queryProjectBasicView(Long ProjectId) {
        ProjectBasicResponse projectBasicResponse = remoteConstructionProjectFeignApi.getQueryProjectBasicView(ProjectId).getData(); //getQueryProjectBasicView(ProjectId).getData();

        return projectBasicResponse;
    }
}
